package com.ruoyi.service.jpjs.personconfig.impl;import org.springframework.beans.factory.annotation.Autowired;


import com.ruoyi.mapper.jpjs.personconfig.PerSonConfigMapper;
import com.ruoyi.service.jpjs.personconfig.PerSonConfigService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class PerSonConfigServiceimpl implements PerSonConfigService {

    @Autowired
    PerSonConfigMapper perSonConfigMapper;

    @Override
    public List<Map<String, Object>> list(Map map) {
        List<Map<String, Object>> list = perSonConfigMapper.list(map);
        String jobName;
        for (Map map1 : list) {
            jobName = map1.get("jobName").toString();
            if (jobName.equals("安全员")) {
                map1.put("四十万以上", "2+每增加10万方增加1人");
            }
            if (jobName.equals("一级施工员") || jobName.equals("二级施工员") || jobName.equals("三级施工员")) {
                map1.put("四十万以上", "10+每增加10万方增加1人");
            }
        }
        return list;
    }
}
